package cn.tedu.controller;

import cn.tedu.pojo.Student;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author :Colin
 * @version 创建时间: 2021/7/16 9:34
 */
@RestController
@RequestMapping("stu")
@CrossOrigin
public class StudentController {
    @RequestMapping("add")
    public Student add(Student s){
        System.out.println(s);
        return s;
    }
}

